export const setToken = (data:any)=>{
  localStorage.setItem('token',JSON.stringify(data))
}

export const getToken = ()=>{
  const token:any = localStorage.getItem('token')
  return JSON.parse(token)
}

export const removeToken = () =>{
  localStorage.removeItem('token')
}

